home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / pascal / tptc17.zip / T2C.BAT < prev    next >
DOS Batch File  |  1988-03-26  |  493b  |  26 lines

  1. echo off
  2. rem batch driver to translate pascal to c with include file post-processing
  3.  
  4. rem insert your desired "default options" here
  5. set tptc=-l -wj: -sc:\inc -i
  6.  
  7. rem check for proper command-line options
  8. if .%2 == . goto usage
  9. if exist %1 goto usage
  10.  
  11. tptc %1 %3 %4 %5 %6 %7 %8 %9 
  12. if errorlevel 1 goto exit
  13.  
  14. uninc %1.c %2
  15. goto exit
  16.  
  17. :usage
  18. echo.
  19. echo usage:  t2c SOURCEFILE DESTDIR
  20. echo ex:     t2c tptc \dest
  21. echo (do not specify input file extension)
  22.  
  23. :exit
  24. echo.
  25.  
  26.